package com.bird.extension.pattern.abstractfactory;

import com.bird.extension.pattern.simpleFactory.entity.Mouse;
/**
 * @Author: sijunqiang
 * @Date: 2020/4/4 12:00
 * @Description: unit test abstract factory pattern
 */
public class TestComputer {

    public static void main(String[] args) {
        //创建电脑工厂
        DellComputerFactory df = new DellComputerFactory();
        Mouse mouse = df.createMouse();
        KeyBoard keyBord = df.createKeyBord();
        mouse.sayHello();
        keyBord.sayHello();


    }

}
